package org.lex.game.sudoku.util.table;

public abstract class AbstractLabelProvider<T> implements LabelProvider<T> {
	public String getDefaultColumnName(int column) {
		String result = "";
		for (; column >= 0; column = column / 26 - 1) {
			result = (char) ((char) (column % 26) + 'A') + result;
		}
		return result;
	}

	@Override
	public Class<?> getColumnClass(int columnIndex) {
		return Object.class;
	}
}
